<ion-header>
    <ion-navbar color="orange">
        <ion-title>
            我完成的任务
        </ion-title>
    </ion-navbar>
</ion-header>


<ion-content>
    <!-- 1 -->
    <div *ngIf="lists && lists.length || tasks" class="ht-f1f1f1 ht-overflow">
        <!-- 多任务 -->
        <div class=" ht-margin-bottom ht-background" padding-top padding-bottom *ngFor="let task of tasks">
            <div padding-left padding-right>
                <div class="ht-overflow ht-padding-bottom10">
                    <img src="assets/imgs/share-holder1.jpg" alt="" class="t-tx">
                    <div class="ht-padding-lr ht-line-40 ht-float-left ht-d32d25 ht-font-14">
                        {{task.title}}
                    </div>
                    <div class="ht-padding-lr ht-line-40 ht-float-right ht-999 ht-font-14">
                        {{task.create_time}}
                    </div>
                </div>
                <div class="flex flex-line-between">
                    <!--<div class="ht-font-f29603">-->
                    <!--信用值：{{info.credit_line}}-->
                    <!--</div>-->
                    <!--<span class="ht-infloat-block ht-float-left ht-font-14 ht-333 ht-padding-lr" *ngIf="info.click_pay === 1">-->
                    <!--有偿分享任务-->
                    <!--</span>-->
                    <span class="ht-infloat-block ht-font-14 ht-333 ht-padding-lr">
                        {{task.content}}
                    </span>


                </div>
                <div class="flex flex-line-between" padding-top>
                    <!--<div class="ht-font-f29603">-->
                    <!--信用值：{{info.credit_line}}-->
                    <!--</div>-->
                    <!--<span class="ht-infloat-block ht-float-left ht-font-14 ht-333 ht-padding-lr" *ngIf="info.click_pay === 1">-->
                    <!--有偿分享任务-->
                    <!--</span>-->
                    <div class="t-sj ht-font-12 ht-ff4b3d">
                        <img src="assets/imgs/icon-sj.png" alt="" class="icon-sj">
                        <span class="ht-float-left ht-padding-l5">回购单价 ￥{{task.goods_price}}/个</span>
                    </div>
                    <div class="ht-font-12" (click)="pageRedirect('ReBuyPage',{id:task.id})">
                        <i class="t-zt success">
                            <span>复购</span>
                        </i>
                    </div>
                    <div class="ht-font-12">
                        <i class="t-zt">
                            <span *ngIf="task.status==1">已报名</span>
                            <span *ngIf="task.status==2">平台已确认</span>
                            <span *ngIf="task.status==4">未完成</span>
                            <span *ngIf="task.status==3">待结账</span>
                            <span *ngIf="task.status==5">落选</span>
                            <span *ngIf="task.status==6">已结款</span>
                        </i>
                    </div>

                </div>
            </div>
        </div>
        <!-- 1 -->
        <div class="ht-100 ht-overflow ht-padding-tb ht-border-bottom" padding-left padding-right *ngFor="let item of lists">
            <div class="ht-100 ht-overflow ht-333 ht-line-20">
                <div [navPush]="'PostDetailPage'" [navParams]="{id: item.amoy_id}">
                    <div class="flex flex-line-between">
                        <span class="pr-margin-right">{{item.amoy_sn}}</span>
                        <!--<span class="pr-margin-right">{{item.reward_name}}</span>-->
                        <span class="pr-margin-right">￥{{item.reward_price}}</span>
                        <span class="">已完成</span>
                    </div>
                    <div>
                        {{item.auto_content}}
                    </div>
                </div>
                <div class="flex flex-line-end" *ngIf="item.status == 2">
                    <span class="pr-ywc pr-margin-right" *ngIf="item.has_comment == false" (click)="pageRedirect('CommentDingPage',{amoy_id:item.amoy_id,type:'reward-employee'})">评价金主</span>
                    <span class="pr-ywc pr-margin-right" *ngIf="item.has_comment == true">已评价</span>
                </div>
            </div>
        </div>
    </div>
    <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
        <ion-infinite-scroll-content></ion-infinite-scroll-content>
    </ion-infinite-scroll>
</ion-content>